﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Orchard.Data.Conventions;

namespace Downplay.Audit.Models
{
    public class UserLocationRecord
    {

        public virtual long Id { get; set; }

        public virtual int? UserId { get; set; }

        [StringLength(15)]
        public virtual string IPv4Address { get; set; }

        [StringLength(39)]
        public virtual string IPv6Address { get; set; }

        [StringLengthMax]
        public virtual string BrowserDetails { get; set; }

        [StringLengthMax]
        public virtual string HostDetails { get; set; }

        [StringLength(2)]
        public virtual string CountryCode { get; set; }

        public virtual DateTime FirstSeen { get; set; }
        public virtual DateTime LastSeen { get; set; }
        public virtual DateTime LastChecked { get; set; }

    }
}